﻿#include "largefileuploadservice.h"

#include <largefileuploaddao.h>

LargeFileUploadService::LargeFileUploadService()
{
}

LargeFileUploadService::~LargeFileUploadService()
{
}

bool LargeFileUploadService::selectLargeFileUploadByMd5(LargeFileUpload &largeFileUpload,QString &md5)
{
    LargeFileUploadDao largeFileUploadDao;
    largeFileUploadDao.openDataBase();
    return largeFileUploadDao.selectLargeFileUploadByMd5(largeFileUpload,md5);
}

bool LargeFileUploadService::saveLargeFileUpload(LargeFileUpload &largeFileUpload)
{
    LargeFileUploadDao largeFileUploadDao;
    largeFileUploadDao.openDataBase();
    return largeFileUploadDao.saveLargeFileUpload(largeFileUpload);
}

bool LargeFileUploadService::deleteLargeFileUploadById(uint64_t &id)
{
    LargeFileUploadDao largeFileUploadDao;
    largeFileUploadDao.openDataBase();
    return largeFileUploadDao.deleteLargeFileUploadById(id);
}
